/**
 * 
 */
package vn.support.util;

import java.math.BigInteger;
import java.security.MessageDigest;

/**
 * @author nttuyen
 * @version 1.0
 */
public class StringUtil {
	public static String md5(String value) {
		try {
			MessageDigest md5 = MessageDigest.getInstance("MD5");
			md5.update(value.getBytes());
			BigInteger dis = new BigInteger(1, md5.digest());
			String text = dis.toString(16);
			return text;
		} catch (Exception e) {
			return "";
		}
	}
}
